package com.ruoyi.admin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.admin.mapper.CorpCompanyDepartmentsMapper;
import com.ruoyi.admin.domain.CorpCompanyDepartments;
import com.ruoyi.admin.service.ICorpCompanyDepartmentsService;

/**
 * 部门列表Service业务层处理
 * 
 * @author Jimmy
 * @date 2022-08-04
 */
@Service
public class CorpCompanyDepartmentsServiceImpl implements ICorpCompanyDepartmentsService 
{
    @Autowired
    private CorpCompanyDepartmentsMapper corpCompanyDepartmentsMapper;

    /**
     * 查询部门列表
     * 
     * @param id 部门列表主键
     * @return 部门列表
     */
    @Override
    public CorpCompanyDepartments selectCorpCompanyDepartmentsById(Integer id)
    {
        return corpCompanyDepartmentsMapper.selectCorpCompanyDepartmentsById(id);
    }

    /**
     * 查询部门列表列表
     * 
     * @param corpCompanyDepartments 部门列表
     * @return 部门列表
     */
    @Override
    public List<CorpCompanyDepartments> selectCorpCompanyDepartmentsList(CorpCompanyDepartments corpCompanyDepartments)
    {
        return corpCompanyDepartmentsMapper.selectCorpCompanyDepartmentsList(corpCompanyDepartments);
    }

    /**
     * 新增部门列表
     * 
     * @param corpCompanyDepartments 部门列表
     * @return 结果
     */
    @Override
    public int insertCorpCompanyDepartments(CorpCompanyDepartments corpCompanyDepartments)
    {
        return corpCompanyDepartmentsMapper.insertCorpCompanyDepartments(corpCompanyDepartments);
    }

    /**
     * 修改部门列表
     * 
     * @param corpCompanyDepartments 部门列表
     * @return 结果
     */
    @Override
    public int updateCorpCompanyDepartments(CorpCompanyDepartments corpCompanyDepartments)
    {
        return corpCompanyDepartmentsMapper.updateCorpCompanyDepartments(corpCompanyDepartments);
    }

    /**
     * 批量删除部门列表
     * 
     * @param ids 需要删除的部门列表主键
     * @return 结果
     */
    @Override
    public int deleteCorpCompanyDepartmentsByIds(Integer[] ids)
    {
        return corpCompanyDepartmentsMapper.deleteCorpCompanyDepartmentsByIds(ids);
    }

    /**
     * 删除部门列表信息
     * 
     * @param id 部门列表主键
     * @return 结果
     */
    @Override
    public int deleteCorpCompanyDepartmentsById(Integer id)
    {
        return corpCompanyDepartmentsMapper.deleteCorpCompanyDepartmentsById(id);
    }
}
